package cn.dengta.webapp.user.entity;

import java.time.LocalTime;
import java.util.Date;

import cn.dengta.webapp.base.entity.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 用户分层维度指标
 *
 * @author lizhichao
 * @since 2022-11-01
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserLevelStat extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 统计日期 */
	Date reportDate;
	/** 统计小时 */
	LocalTime reportTime;
	/** 搭讪次数 */
	Integer greetTimes;
	/** 被搭讪次数 */
	Integer repliedGreetTimes;
	/** 回复次数 */
	Integer replyTimes;
	/** 被回复次数 */
	Integer repliedReplyTimes;
	/** 活跃人数 */
	Integer activeTimes;
	/** 分层ID */
	Long layerId;
	/** 统计类型：0=小时，1=天 */
	Integer type;
	/** 添加时间 */
	Date addTime;
	/** 更新时间 */
	Date updateTime;

	public static final String REPORT_DATE = "report_date";
	public static final String REPORT_TIME = "report_time";
	public static final String GREET_TIMES = "greet_times";
	public static final String REPLIED_GREET_TIMES = "replied_greet_times";
	public static final String REPLY_TIMES = "reply_times";
	public static final String REPLIED_REPLY_TIMES = "replied_reply_times";
	public static final String ACTIVE_TIMES = "active_times";
	public static final String TOTAL_DURATION = "total_duration";
	public static final String LAYER_ID = "layer_id";
	public static final String ADD_TIME = "add_time";
	public static final String TYPE = "type";
	public static final String UPDATE_TIME = "update_time";

}
